import { HashRouter, Routes, Route, Navigate } from "react-router-dom";
import Home from "./views/Home/Home";
import Register from "./views/Register/Register";
import Login from "./views/Login/Login";
import Chat from "./views/Chat/Chat";

function App() {
  return <HashRouter>
    <Routes>
      <Route path="/home" element={<Home />}></Route>
      <Route path="/register" element={<Register />}></Route>
      <Route path="/login" element={<Login />}></Route>
      <Route path="/chat" element={<Chat />}></Route>
      <Route path="/" element={<Navigate to="/home" replace={true} />}></Route>
    </Routes>
  </HashRouter>
}

export default App
